#!/bin/bash

#
# Resizing a large image to completely fill a specific image size but cropping any parts of the image that do not fit. 
#
# ----------
# -- Args --
# ----------
# > 1 : width of the converted image
# > 2 : height of the converted image
# > 3 : color
# > 4 : the output format

`dirname $0`/convertClear-transparency | \
		convert - -resize $1x$2\> -size $1x$2 xc:${3:black} +swap -gravity center -composite "${4:-png}":-
				           

